home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
mint
/
tw14w12b.zoo
/
tw14w12
/
toswin.doc
< prev
next >
Wrap
Text File
|
1992-10-30
|
16KB
|
393 lines
TOSWIN: a background program accessory for MiNT
Written by Eric R. Smith (eric.smith@uwo.ca)
This version of TOSWIN is copyright 1992 Eric R. Smith. All rights
reserved.
TOSWIN is a simple accessory that gives an easy way of running
TOS programs in the background of a GEM session. Selecting this accessory
pops up a window with a scrapbook icon and a menu bar. The menu bar
contains drop down menus; to open a window, select "Open Std Window"
or "Open Alt Window" from the "File" menu. This will pop up a file
selector box; use this box to select the program you want to run. Of
course, this should *not* be a GEM program; you already have a GEM program
running, or you wouldn't be able to get to the accessory. GEM will likely
become horribly confused if there are two programs making GEM calls
simultaneously.
Closing the TOSWIN window has the effect of closing the accessory, so
that all windows are hidden. They will all re-appear when "TOS programs"
is selected again from the DESK menu.
Closing any other window kills all the programs running in that window.
Be careful!
Note that TOSWIN may also be run as an ordinary program; to do this,
just change the extension from '.acc' to '.prg'.
MENUS
File:
Open Std Window
Opens a standard size (i.e. the same size as the line A variables)
window.
Open Alt Window
Opens a different size window. The size defaults to 80x50, but
this may be changed with the "Set Alt Window Size..." Global
menu entry.
Close
Closes the topmost window.
Load Config...
Loads a configuration file previously saved by Save Config...
TOSWIN looks for a config file called TOSWIN.CNF when starting
up, and loads it automatically if found.
Save Config...
Save the current menu settings and position of the scrapbook icon
in a file. The user is prompted for whether or not to save
window positions.
Set Menu Keys...
Allows keyboard equivalents to be established for any menu entries.
Any key (except spacebar) may be used as a menu equivalent, although
obviously the use of standard ASCII codes would be undesirable :-(.
Quit
Exit TOSWIN after sending SIGHUP to all child processes.
Edit:
Copy
Copies the currently selected region in the top window to the
scrapbook.
Paste
Pastes the contents of the scrapbook into the top window.
Paste Options...
Controls how data is copied and pasted; for example, whether end
of line should be sent to applications as a carriage return,
line feed, or combination.
Global:
Align Windows
If this is set, TOSWIN will adjust all windows so that the text
inside them falls on a byte boundary. This should speed up
the VDI output a bit, at least for fixed width fonts that are
8 pixels wide.
Application Menus
If this option is set, and a window is opened for which an associated
.MNU file is found, then the application's menu will be loaded and
displayed in the status line of the window.
Autoclose
If this option is set, windows are automatically closed when no more
processes can send data to them. Otherwise, the string <EXITED>
is written to the window and it remains open until the user closes
it manually.
Flourishes
If set, grow/shrink boxes appear for windows and dialog boxes.
Point to type
If set, input is sent to whatever window the mouse pointer is
currently over (so you only have to point at a window to type
into it). Otherwise, input always goes to the top window.
Smooth Scrolling
Causes the window contents to be updated more often (after every line)
if set.
Set Std Window Size...
Sets the number of rows and columns for windows opened with the
"Open Std Window" menu option, or which are run via TOSRUN.
This option also changes the line A variables to reflect the
new "standard" size. When specifying a window's rows and
columns, you may also specify a "scrollback" size. This many rows
of data are kept around even after they scroll off the top of
the window, and may be accessed via the vertical scroll bar and
scroll arrows (or via any keys assigned to the "Gadgets/Scroll Up"
and "Gadgets/Scroll Down" menu items).
Set Alt Window Size...
Sets the number of rows and columns for windows opened with the
"Open Alt Window"
Set Default Font...
Sets the default font for new windows. Any GDOS font may be used
in a window (this assumes, of course, that you're running GDOS!).
Even proportional fonts may be used, although they may produce
strange looking results if used with certain programs :-).
Set Default Gadgets...
Sets the default gadgets for new windows. Windows may have no
gadgets, a title bar (including closer and fuller), or a full
complement of gadgets including sizer, sliders, arrow, and title
bar. Windows may also have a menu bar; if a .MNU file is found
that goes with the program being started in the window, it may
be loaded and displayed. If no .MNU is found, no menu is displayed
for this window.
Environment...
Instructs TOSWIN about how to set up the environment for new
processes. The default setting (use ARGV, and set TERM, TERMCAP,
LINES, and COLUMNS) is the one usually desired.
Redraw Screen
Sends a redraw message to all windows, and re-draws the menu
bar as well.
The "Window" and "Gadgets" menus are only applicable to the topmost window,
and since the topmost window is the "TOSWIN" window when the menu is
active, they items in these menus cannot be accessed directly. Instead, you
must use the "Set Menu Keys" option to assign keyboard equivalents for
the menu items below:
Window:
Bury Window
If more than one TOSWIN window is open on screen, a new window
(i.e. not the current top one) is brought to the top. Repeated
application will cycle through all open windows.
Iconify Window
Make the window small and put it "out of the way". Iconified windows
may be dragged around without making them bigger; they are
expanded again by a single click.
Send Character
The next character typed will be sent to the application running
in the top window, regardless of whether the key is a menu
equivalent or not.
Set Window Size...
Change the number of rows and columns for the top window; this probably
won't change the appearance on screen (unless the new size is
radically smaller). It will, however, make more or less space available
via the sliders. Changing the window size causes a SIGWINCH signal
to be sent to the process group running in the window.
Set Font...
Change the font of the top window.
Set Gadgets...
Change the gadgets (slider, title, etc.) showing on the top
window.
Gadgets:
Toggle Full
Has the same effect as clicking on the "full" box of a window.
Move Window
A pointing finger appears; move this to the location to which
you want the window moved, and click the mouse.
Scroll Up
Has the same effect as the "up arrow" gadget of a window.
Scroll Down
Has the same effect as the "down arrow" gadget of a window.
Scroll Left
Has the same effect as the "left arrow" gadget of a window.
Scroll Right
Has the same effect as the "right arrow" gadget of a window.
WINDOWS
Text in a window may be selected by the usual operation of holding down
the mouse button and sweeping out a region. Single clicking on a window
will unselect any text previously selected. Selected text appears in
inverse video. A block of selected text may be dragged to another
(or the same) window; when this is done, the effect is as though
the user typed the selected text at the keyboard while the target window
was on top. Selected text may also be dragged to the clipboard icon to
paste it to the clipboard. Dragging the clipboard icon to a window pastes
the contents of the clipboard into the window.
Windows may be resized, moved, etc. with the normal window gadgets, or
with the mouse if the control key is held down. To resize a window without
a sizer box, hold down the control key and press the left mouse button
at the lower r